package com.xiaoy.page;

public class PageReport {
	
	private int pagesize;	// 单页条数
	private int total;		// 总条数
	private int pageNo;		// 当前页
	private int totalPages;
	
	private  PageReport (){}
	
	private  PageReport (int pagesize,int total){
		
		this.total = total;
		this.pagesize = pagesize;
		if (total%pagesize==0) {
			totalPages = total/pagesize;
		}else {
			totalPages = total/pagesize+1;
		}
		this.pageNo = 1;
	}
	
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(int totalPages) {
		totalPages = totalPages;
	}
	
}
